package com.wukang.photovoltaicinspectionpictures.ui.main

import androidx.lifecycle.viewModelScope
import com.wukang.photovoltaicinspectionpictures.base.BaseViewModel
import com.wukang.photovoltaicinspectionpictures.logger.Rog
import com.wukang.photovoltaicinspectionpictures.utils.toast
import kotlinx.coroutines.launch

/**
 * 主界面ViewModel
 * @author wukang
 */
class MainViewModel : BaseViewModel() {
    fun uploadLogger() {
        Rog.readMsg {
            viewModelScope.launch {
                useActivity { it?.absolutePath.toast(this) }
            }
        }
    }
}